package com.example.shopping.service.imp;
import com.example.shopping.entity.GoodsCategory;
import com.example.shopping.mapper.GoodsCategoryMapper;
import com.example.shopping.service.GoodsCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xuan 2021/9/16
 */
@Service
public class GoodsCategoryServiceImpl implements GoodsCategoryService {
    @Autowired
    GoodsCategoryMapper goodsCategoryMapper;
    @Override
    public List<GoodsCategory> showGoodsAll() {
        return goodsCategoryMapper.showGoodsAll();
    }

    @Override
    public GoodsCategory showCategoryAll(String categoryName) {
        return goodsCategoryMapper.showCategoryAll(categoryName);
    }
}
